Optimal. Leaf size=113 \[ -\frac{3 b \sin (a) \text{CosIntegral}\left (b x^n\right )}{4 n}-\frac{3 b \sin (3 a) \text{CosIntegral}\left (3 b x^n\right )}{4 n}-\frac{3 b \cos (a) \text{Si}\left (b x^n\right )}{4 n}-\frac{3 b \cos (3 a) \text{Si}\left (3 b x^n\right )}{4 n}-\frac{3 x^{-n} \cos \left (a+b x^n\right )}{4 n}-\frac{x^{-n} \cos \left (3 \left (a+b x^n\right )\right )}{4 n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.199548, antiderivative size = 113, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 6, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {3426, 3380, 3297, 3303, 3299, 3302} \[ -\frac{3 b \sin (a) \text{CosIntegral}\left (b x^n\right )}{4 n}-\frac{3 b \sin (3 a) \text{CosIntegral}\left (3 b x^n\right )}{4 n}-\frac{3 b \cos (a) \text{Si}\left (b x^n\right )}{4 n}-\frac{3 b \cos (3 a) \text{Si}\left (3 b x^n\right )}{4 n}-\frac{3 x^{-n} \cos \left (a+b x^n\right )}{4 n}-\frac{x^{-n} \cos \left (3 \left (a+b x^n\right )\right )}{4 n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3426
Rule 3380
Rule 3297
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int x^{-1-n} \cos ^3\left (a+b x^n\right ) \, dx &=\int \left (\frac{3}{4} x^{-1-n} \cos \left (a+b x^n\right )+\frac{1}{4} x^{-1-n} \cos \left (3 a+3 b x^n\right )\right ) \, dx\\ &=\frac{1}{4} \int x^{-1-n} \cos \left (3 a+3 b x^n\right ) \, dx+\frac{3}{4} \int x^{-1-n} \cos \left (a+b x^n\right ) \, dx\\ &=\frac{\operatorname{Subst}\left (\int \frac{\cos (3 a+3 b x)}{x^2} \, dx,x,x^n\right )}{4 n}+\frac{3 \operatorname{Subst}\left (\int \frac{\cos (a+b x)}{x^2} \, dx,x,x^n\right )}{4 n}\\ &=-\frac{3 x^{-n} \cos \left (a+b x^n\right )}{4 n}-\frac{x^{-n} \cos \left (3 \left (a+b x^n\right )\right )}{4 n}-\frac{(3 b) \operatorname{Subst}\left (\int \frac{\sin (a+b x)}{x} \, dx,x,x^n\right )}{4 n}-\frac{(3 b) \operatorname{Subst}\left (\int \frac{\sin (3 a+3 b x)}{x} \, dx,x,x^n\right )}{4 n}\\ &=-\frac{3 x^{-n} \cos \left (a+b x^n\right )}{4 n}-\frac{x^{-n} \cos \left (3 \left (a+b x^n\right )\right )}{4 n}-\frac{(3 b \cos (a)) \operatorname{Subst}\left (\int \frac{\sin (b x)}{x} \, dx,x,x^n\right )}{4 n}-\frac{(3 b \cos (3 a)) \operatorname{Subst}\left (\int \frac{\sin (3 b x)}{x} \, dx,x,x^n\right )}{4 n}-\frac{(3 b \sin (a)) \operatorname{Subst}\left (\int \frac{\cos (b x)}{x} \, dx,x,x^n\right )}{4 n}-\frac{(3 b \sin (3 a)) \operatorname{Subst}\left (\int \frac{\cos (3 b x)}{x} \, dx,x,x^n\right )}{4 n}\\ &=-\frac{3 x^{-n} \cos \left (a+b x^n\right )}{4 n}-\frac{x^{-n} \cos \left (3 \left (a+b x^n\right )\right )}{4 n}-\frac{3 b \text{Ci}\left (b x^n\right ) \sin (a)}{4 n}-\frac{3 b \text{Ci}\left (3 b x^n\right ) \sin (3 a)}{4 n}-\frac{3 b \cos (a) \text{Si}\left (b x^n\right )}{4 n}-\frac{3 b \cos (3 a) \text{Si}\left (3 b x^n\right )}{4 n}\\ \end{align*}
Mathematica [A] time = 0.234899, size = 95, normalized size = 0.84 \[ -\frac{x^{-n} \left (3 b \sin (a) x^n \text{CosIntegral}\left (b x^n\right )+3 b \sin (3 a) x^n \text{CosIntegral}\left (3 b x^n\right )+3 b \cos (a) x^n \text{Si}\left (b x^n\right )+3 b \cos (3 a) x^n \text{Si}\left (3 b x^n\right )+3 \cos \left (a+b x^n\right )+\cos \left (3 \left (a+b x^n\right )\right )\right )}{4 n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.05, size = 101, normalized size = 0.9 \begin{align*}{\frac{3\,b}{4\,n} \left ( -{\frac{\cos \left ( a+b{x}^{n} \right ) }{b{x}^{n}}}-{\it Si} \left ( b{x}^{n} \right ) \cos \left ( a \right ) -{\it Ci} \left ( b{x}^{n} \right ) \sin \left ( a \right ) \right ) }+{\frac{3\,b}{4\,n} \left ( -{\frac{\cos \left ( 3\,a+3\,b{x}^{n} \right ) }{3\,b{x}^{n}}}-{\it Si} \left ( 3\,b{x}^{n} \right ) \cos \left ( 3\,a \right ) -{\it Ci} \left ( 3\,b{x}^{n} \right ) \sin \left ( 3\,a \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{-n - 1} \cos \left (b x^{n} + a\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.85088, size = 366, normalized size = 3.24 \begin{align*} -\frac{3 \, b x^{n} \operatorname{Ci}\left (3 \, b x^{n}\right ) \sin \left (3 \, a\right ) + 3 \, b x^{n} \operatorname{Ci}\left (-3 \, b x^{n}\right ) \sin \left (3 \, a\right ) + 3 \, b x^{n} \operatorname{Ci}\left (b x^{n}\right ) \sin \left (a\right ) + 3 \, b x^{n} \operatorname{Ci}\left (-b x^{n}\right ) \sin \left (a\right ) + 6 \, b x^{n} \cos \left (3 \, a\right ) \operatorname{Si}\left (3 \, b x^{n}\right ) + 6 \, b x^{n} \cos \left (a\right ) \operatorname{Si}\left (b x^{n}\right ) + 8 \, \cos \left (b x^{n} + a\right )^{3}}{8 \, n x^{n}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{-n - 1} \cos \left (b x^{n} + a\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]